package com.book.book.dao;

import com.book.book.entity.Novel;

import java.util.List;
import java.util.Map;

public interface NovelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Novel record);

    int insertSelective(Novel record);

    void batchInsert (List<Novel> novels);

    Novel selectByPrimaryKey(Long id);

    List<Novel> selectNovelByKeyword(String keyword);

    List<Novel> selectNovelByKeywordAndPlatformId(Map<String,String> map);

    int updateByPrimaryKeySelective(Novel record);

    int updateByPrimaryKey(Novel record);
}